<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <!-- v-model 双向数据绑定的体现 只会体现在UI控件中，只能应用在有value属性的 -->
        <input type="text" :value='msg'>
        <input type="text" v-model="msg">
        <input type="text" v-bind:value="msg" v-on:input='ab'>
        <h3>{{msg}}</h3>
    </div>
    <script src="./vue.js"></script>
    <script>
        new  Vue({
            el:"#app",
            data () {
                return {
                    msg:"大学"
                }
            },
            methods: {
                ab(e){
                    console.log(e.target.value);
                    this.msg=e.target.value;
                }
            },
        })
    </script>
</body>
</html>